package com.bytz.modules.cms.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bytz.common.system.base.service.ICrudService;
import com.bytz.modules.cms.order.entity.OrderOfflinePay;
import com.bytz.modules.cms.order.model.OrderOfflinePayModel;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IAdminOrderOfflinePayService extends ICrudService<OrderOfflinePay, OrderOfflinePay> {

    /**
     * 通过excel导入
     */
    void importExcel(List<OrderOfflinePay> offlinePays);

    /**
     * 分页查询
     */
    IPage<OrderOfflinePayModel> queryPage(Page<OrderOfflinePay> reqPage, OrderOfflinePay offlinePay, Map<String, String[]> parameterMap);

    /**
     * 导出excel
     *
     * @param offlinePay
     * @param parameterMap
     * @return
     */
    void exportExcel(OrderOfflinePay offlinePay, Map<String, String[]> parameterMap, HttpServletResponse response) throws IOException;

}